
/* USART */

#ifndef 	___USART___H_
#define 	___USART___H_


#define   U2_REC_BUF_SIZE	164
extern char u2_rec_buf[U2_REC_BUF_SIZE];

/* enum */
/* { */
/* 	SER_PORT_0 = 0, */
/* 	SER_PORT_1,		 */
/* 	SER_PORT_2,		 */
	
/* 	SER_PORTS_AMOUNT */
/* }; */

/* #define   MODEM_PORT		SER_PORT_2 */
/* #define   AUX_PORT		SER_PORT_0 */

/* #define 	UART0_TXD_BUFFER_SIZE 		1024 */
/* #define 	UART1_TXD_BUFFER_SIZE 		256 */
/* #define 	UART2_TXD_BUFFER_SIZE 		512 */


void Init_UARTs ( void );

/* int UART_putData ( char* Data, unsigned int ByteCount, unsigned int PortNumber ); */
/* int UART_puts ( void* s, unsigned int PortNumber ); */
/* void Drive_UARTs ( void ); */

void UART0_Init ( unsigned long br );
void UART2_Init ( unsigned long br );
void UART3_Init ( unsigned long br );

void putstr ( char* s, int Port );
void putds ( unsigned char *s, unsigned int length, unsigned char Port );		
void putsf( const char *s, int Port );
void putch( unsigned char, int Port);

#endif
